package com.hn.common.utils.ding.process;

import com.dingtalk.api.request.OapiProcessinstanceCreateRequest;

import java.util.ArrayList;
import java.util.List;

/**
 * 描述:
 *
 * @author fei
 * 2019-06-27 12:07
 */
public class ProcessForm {

    private List<OapiProcessinstanceCreateRequest.FormComponentValueVo> formComponentValues =
            new ArrayList<>();

    public ProcessForm put(String name, String value){
        OapiProcessinstanceCreateRequest.FormComponentValueVo vo = new OapiProcessinstanceCreateRequest.FormComponentValueVo();
        vo.setName(name);
        vo.setValue(value);
        formComponentValues.add(vo);
        return this;
    }

    public List<OapiProcessinstanceCreateRequest.FormComponentValueVo> getList(){
        return formComponentValues;
    }

}
